import http from "@/api";

/**
 * @name //门禁管理
 */

// 获取门列表
export const getDoorList = (params = {}) => {
  return http.post(`/door/query`, params, { noLoading: true });
};

// 短时开锁
export const unlock = (params = {}) => {
  return http.post(`/door/unlock`, params);
};

// 短时开锁结果
export const unlockResult = (params = {}) => {
  return http.post(`/door/unlock/query`, params, { noLoading: true });
};
